(function () {
// import * as echarts from 'echarts';

// var chartDom = document.getElementById('main');
// var myChart = echarts.init(chartDom);
var option;
console.log('asdfbaship阿萨德刚讽德诵功法师打发立卡受打击你发开绿卡')

// function getVirtualData(year) {
//   const date = +echarts.time.parse(year + '-01-01');
//   const end = +echarts.time.parse(+year + 1 + '-01-01');
//   const dayTime = 3600 * 24 * 1000;
//   const data = [];
//   for (let time = date; time < end; time += dayTime) {
//     data.push([
//       echarts.time.format(time, '{yyyy}-{MM}-{dd}', false),
//       Math.floor(Math.random() * 1000)
//     ]);
//   }
//   return data;
// }
const graphData = [
  ['2024-01-01', 260],
  ['2024-01-02', 200],
  ['2024-01-05', 279],
  ['2024-01-09', 847],
  ['2024-01-10', 241],
  ['2024-01-22', 411],
  ['2024-01-18', 985],
  ['2024-01-26', 260],
  ['2017-02-04', 200],
  ['2017-02-09', 279],
  ['2017-02-13', 847],
  ['2017-02-18', 241],
  ['2017-02-23', 411],
  ['2017-02-27', 985]
];
const links = graphData.map(function (item, idx) {
  return {
    source: idx,
    target: idx + 1
  };
});
option = {
  tooltip: {
    position: 'top'
  },
	visualMap: [
	    {
			show:false,
	      min: 0,
	      max: 10,
	      calculable: true,
	      seriesIndex: [1],
	      orient: 'horizontal',
	      // left: '60%',
	      bottom: 20,
		  handleStyle:{
			  color:'#fff'
		  },
		  textColor:{
			 color:'#fff'
		  }
	    },
	   
	  ],
  calendar: [
    
    {
      orient: 'vertical',
      yearLabel: {
        margin: 60,
		color:'#fff'
      },
      monthLabel: {
        margin: 20,
		nameMap: 'cn',
		color:'#fff'
      },
	  dayLabel:{
		  nameMap: 'cn',
		  color:'#fff'
	  },
	  top:100,
      cellSize: 60,
      left: 'center',
      range: '2024-01'
    },
   
  ],
  series: [
   
    {
      type: 'effectScatter',
      coordinateSystem: 'calendar',
		symbolSize: function (val) {
			console.log(val,'asuhgduaysgfduiygkhbjkjwqgeiuytqwiuyetgqlib68545646546')
		  return val[1] / 40;
		},
      data: graphData
    },
    
  ]
};


    var myecharts = echarts.init($('.map .geo')[0]);
     myecharts.setOption(option)

})();